import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import NProgress from 'nprogress'
import 'nprogress/nprogress.css'
import cookie from 'js-cookie'

Vue.use(VueRouter)
const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push(location) {
  return originalPush.call(this, location).catch(err => err)
}
const routes = [{
    path: '/Login',
    name: 'Login',
    meta: {
      title: '欢迎登录'
    },
    component: () => import('../views/Login/Login.vue')
  },
  {
    path: '/',
    name: 'Home',
    component: Home,
    meta: {
      title: '空铁管家CRM管理系统',
      // tags: false
    },
    children: [{
        path: '/main',
        name: 'main',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () => import( /* webpackChunkName: "about" */ '../views/main.vue'),
        meta: {
          title: '首页',
          // tags: false
        },
      },
      // 会员管理
      //会员信息查询
      {
        path: '/customer/queryCustomer',
        name: 'queryCustomer',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () => import( /* webpackChunkName: "about" */ '../views/customer/queryCustomer.vue'),
        meta: {
          title: '会员信息查询'
        },
      },
      // 会员卡订单
      {
        path: '/customer/customerOrder',
        name: 'customerOrder',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () => import( /* webpackChunkName: "about" */ '../views/customer/customerOrder.vue'),
        meta: {
          title: '会员卡订单'
        },
      },
      // 会员卡订单
      {
        path: '/customer/customerOrderDetailed',
        name: 'customerOrderDetailed',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () => import( /* webpackChunkName: "about" */ '../views/customer/customerOrderDetailed.vue'),
        meta: {
          title: '会员卡订单详情'
        },
      },
      {
        path: '/customer/returnCard',
        name: 'returnCard',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () => import( /* webpackChunkName: "about" */ '../views/customer/returnCard.vue'),
        meta: {
          title: '会员卡退卡'
        },
      },
      // 会员卡销售
      {
        path: '/customer/purchaseCard',
        name: 'purchaseCard',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () => import( /* webpackChunkName: "about" */ '../views/customer/purchaseCard.vue'),
        meta: {
          title: '会员卡销售'
        },
      },

      // 会员卡退卡
      {
        path: '/customer/information',
        name: 'information',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () => import( /* webpackChunkName: "about" */ '../views/customer/information.vue'),
        meta: {
          title: '基本信息'
        },
      },

      {
        path: '/customer/refundCard',
        name: 'refundCard',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () => import( /* webpackChunkName: "about" */ '../views/customer/refundCard.vue'),
        meta: {
          title: '退卡'
        },
      },
      {
        path: '/case/caseSystem',
        name: 'caseSystem',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () => import( /* webpackChunkName: "about" */ '../views/case/caseSystem.vue'),
        meta: {
          title: '工单管理'
        },
      },
      {
        path: '/customer/refundCardAudit',
        name: 'refundCardAudit',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () => import( /* webpackChunkName: "about" */ '../views/customer/refundCardAudit.vue'),
        meta: {
          title: '会员卡退卡审核'
        },
      },
      {
        path: '/case/caseSystem',
        name: 'caseSystem',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () => import( /* webpackChunkName: "about" */ '../views/case/caseSystem.vue'),
        meta: {
          title: '工单管理'
        },
      },
      {
        path: '/case/myCaseTask',
        name: 'myCaseTask',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () => import( /* webpackChunkName: "about" */ '../views/case/myCaseTask.vue'),
        meta: {
          title: '我的工单任务'
        },
      },

      {
        path: '/case/caseComplaint',
        name: 'caseComplaint',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () => import( /* webpackChunkName: "about" */ '../views/case/caseComplaint.vue'),
        meta: {
          title: '投诉工单'
        },
      },
      {
        path: '/vipManager/resourceTransfer',
        name: 'resourceTransfer',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () => import( /* webpackChunkName: "about" */ '../views/vipManager/resourceTransfer.vue'),
        meta: {
          title: 'vip资源转移'
        },
      },
      {
        path: '/vipManager/vipResourceVisit',
        name: 'vipResourceVisit',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () => import( /* webpackChunkName: "about" */ '../views/vipManager/vipResourceVisit.vue'),
        meta: {
          title: 'vip资源回访'
        },
      },
      {
        path: '/vipManager/vipResourceTrace',
        name: 'vipResourceTrace',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () => import( /* webpackChunkName: "about" */ '../views/vipManager/vipResourceTrace.vue'),
        meta: {
          title: '待跟进事项'
        },
      },
      {
        path: '/travel/groupNumber',
        name: 'groupNumber',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () => import( /* webpackChunkName: "about" */ '../views/travel/groupNumber.vue'),
        meta: {
          title: '团号'
        },
      },
      {
        path: '/travel/groupProduct',
        name: 'groupProduct',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () => import( /* webpackChunkName: "about" */ '../views/travel/groupProduct.vue'),
        meta: {
          title: '团产品'
        },
      },
      {
        path: '/travel/supplier',
        name: 'supplier',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () => import( /* webpackChunkName: "about" */ '../views/travel/supplier.vue'),
        meta: {
          title: '供应商'
        },
      },
      {
        path: '/travel/contract',
        name: 'contract',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () => import( /* webpackChunkName: "about" */ '../views/travel/contract.vue'),
        meta: {
          title: '供应商合同'
        },
      },
      {
        path: '/travel/travelOrderRefund',
        name: 'travelOrderRefund',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () => import( /* webpackChunkName: "about" */ '../views/travel/travelOrderRefund.vue'),
        meta: {
          title: '旅游退单'
        },
      },
      //系统管理
      //部门管理
      {
        path: '/system/department',
        name: 'department',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () => import( /* webpackChunkName: "about" */ '../views/system/department.vue'),
        meta: {
          title: '部门管理'
        },
      },
      //员工管理
      {
        path: '/system/employee',
        name: 'employee',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () => import( /* webpackChunkName: "about" */ '../views/system/employee.vue'),
        meta: {
          title: '员工管理'
        },
      },
      //角色管理
      {
        path: '/system/position',
        name: 'position',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () => import( /* webpackChunkName: "about" */ '../views/system/position.vue'),
        meta: {
          title: '角色管理'
        },
      },
      {
        path: '/system/cardInterests',
        name: 'cardInterests',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () => import( /* webpackChunkName: "about" */ '../views/system/cardInterests.vue'),
        meta: {
          title: '卡权益管理'
        },
      },

      {
        path: '/system/card',
        name: 'card',
        component: () => import( /* webpackChunkName: "about" */ '../views/system/card.vue'),
        meta: {
          title: '卡类型信息管理'
        },
      },

      // 暂时添加路由
      {
        path: '/system/coupon',
        name: 'coupon',
        component: () => import( /* webpackChunkName: "about" */ '../views/system/coupon.vue'),
        meta: {
          title: '券类型信息管理'
        },
      },

      // 预定分析
      {
        path: '/customer/Duetoanalysis',
        name: 'Duetoanalysis',
        component: () => import('../views/customer/Duetoanalysis.vue'),
        meta: {
          title: '预定分析'
        },
      },
       // 预定分析
       {
        path: '/customer/notification',
        name: 'notification',
        component: () => import('../views/customer/notification.vue'),
        meta: {
          title: '知情告知书'
        },
      },
      // 工单流转
      {
        path: '/case/Workorderflow',
        name: 'Workorderflow',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () => import( /* webpackChunkName: "about" */ '../views/case/Workorderflow.vue'),
        meta: {
          title: '工单流转'
        },
      },
      // 基本信息
      {
        path: '/case/Workorderflow',
        name: 'Workorderflow',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () => import( /* webpackChunkName: "about" */ '../views/case/Workorderflow.vue'),
        meta: {
          title: '工单流转'
        },
      },

      {
        path: '/customer/identification',
        name: 'identification',
        component: () => import('../views/customer/identification.vue'),
        meta: {
          title: '会员识别'
        },
      },
      {
        path: '/customer/physicalExamination',
        name: 'physicalExamination',
        component: () => import('../views/customer/physicalExamination.vue'),
        meta: {
          title: '体检'
        },
      },
      {
        path: '/reserve/refund',
        name: 'refund',
        component: () => import('../views/reserve/refund.vue'),
        meta: {
          title: '机票订单退票',
        },
      },
      {
        path: '/reserve/flightlist',
        name: 'flightlist',
        component: () => import('../views/reserve/flightlist.vue'),
        meta: {
          title: '机票预订'
        },
      },
      {
        path: '/flight/reserve',
        name: 'reserve',
        component: () => import('../views/flight/reserve.vue'),
        meta: {
          title: '机票预订',
          // tags:false
        },
      },
      {
        path: '/flight/flightOrderException',
        name: 'outTicketException',
        component: () => import('../views/flight/flightOrderException.vue'),
        meta: {
          title: '出票异常监控',
        },
      },
      // 机票
      {
        path: '/flight/processorders',
        name: 'processorders',
        component: () => import('../views/flight/processorders.vue'),
        meta: {
          title: '机票订单',
          // tags
        },
      },
      {
        path: '/reserve/pay',
        name: 'pay',
        component: () => import('../views/reserve/pay.vue'),
        meta: {
          title: '机票支付'
        },
      },
      {
        path: '/reserve/flightschedule',
        name: 'flightschedule',
        component: () => import('../views/reserve/flightschedule.vue'),
        meta: {
          title: '机票预订'
        },
      },
      {
        path: '/reserve/flightlist',
        name: 'flightlist',
        component: () => import('../views/reserve/flightlist.vue'),
        meta: {
          title: '机票预订'
        },
      },
      {
        path: '/reserve/flightschedule',
        name: 'flightschedule',
        component: () => import('../views/reserve/flightschedule.vue'),
        meta: {
          title: '机票预订'
        },
      },
      {
        path: '/reserve/ticketchanging',
        name: 'ticketchanging',
        component: () => import('../views/reserve/ticketchanging.vue'),
        meta: {
          title: '机票改签'
        },
      },
      {
        path: '/flight/return',
        name: 'return',
        component: () => import( /* webpackChunkName: "about" */ '../views/flight/return.vue'),
        meta: {
          title: '退改签'
        },
      },
      {
        path: '/reservation/thequery',
        name: 'thequery',
        component: () => import( /* webpackChunkName: "about" */ '../views/reservation/thequery.vue'),
        meta: {
          title: '酒店预订',

        },
      },
      {
        path: '/hotel/hotellist',
        name: 'hotellist',
        component: () => import( /* webpackChunkName: "about" */ '../views/hotel/hotellist.vue'),
        meta: {
          title: '酒店查询'
        },
      },
      {
        path: '/reservation/orderquery',
        name: 'orderquery',
        component: () => import( /* webpackChunkName: "about" */ '../views/reservation/orderquery.vue'),
        meta: {
          title: '订单查询'
        },
      },
      {
        path: '/reservation/thequery',
        name: 'thequery',
        component: () => import( /* webpackChunkName: "about" */ '../views/reservation/thequery.vue'),
        meta: {
          title: '酒店查询'
        },
      },
      {
        path: '/reservation/hotelCancellation',
        name: 'hotelCancellation',
        component: () => import( /* webpackChunkName: "about" */ '../views/reservation/hotelCancellation.vue'),
        meta: {
          title: '酒店取消订单'
        },
      },
      {
        path: '/reservation/orderCancel',
        name: 'orderCancel',
        component: () => import( /* webpackChunkName: "about" */ '../views/reservation/orderCancel'),
        meta: {
          title: '酒店预定取消'
        },
      },
      {
        path: '/hotel/paya',
        name: 'paya',
        component: () => import( /* webpackChunkName: "about" */ '../views/hotel/paya.vue'),
        meta: {
          title: '酒店支付'
        },
      },
      {
        path: '/hotel/order',
        name: 'order',
        component: () => import( /* webpackChunkName: "about" */ '../views/hotel/order.vue'),
        meta: {
          title: '酒店详情'
        },
      },
       
      {
        path: '/hotel/paya',
        name: 'paya',
        component: () => import( /* webpackChunkName: "about" */ '../views/hotel/paya.vue'),
        meta: {
          title: '酒店支付'
        },
      },
      {
        path: '/reservation/hotelOrderException',
        name: 'hotelOrderException',
        component: () => import( /* webpackChunkName: "about" */ '../views/reservation/hotelOrderException.vue'),
        meta: {
          title: '酒店异常监控'
        },
      },
      {
        path: '/hotel/details',
        name: 'details',
        component: () => import( /* webpackChunkName: "about" */ '../views/hotel/details.vue'),
        meta: {
          title: '酒店详情'
        },
      },
      {
        path: '/reserve/endorse',
        name: 'endorse',
        component: () => import( /* webpackChunkName: "about" */ '../views/reserve/endorse.vue'),
        meta: {
          title: '退改签'
        },
      },

      {
        path: '/train/trainOrder',
        name: 'trainOrder',
        component: () => import( /* webpackChunkName: "about" */ '../views/train/trainOrder.vue'),
        meta: {
          title: '火车票订单'
        },
      },
      {
        path: '/train/trainOrderException',
        name: 'trainOrderException',
        component: () => import( /* webpackChunkName: "about" */ '../views/train/trainOrderException.vue'),
        meta: {
          title: '火车票异常订单监控'
        },
      },
      {
        path: '/train/trainReserve',
        name: 'trainReserve',
        component: () => import( /* webpackChunkName: "about" */ '../views/train/trainReserve.vue'),
        meta: {
          title: '火车票预定'
        },
      },
      {
        path: '/traindetails/generate',
        name: 'generate',
        component: () => import( /* webpackChunkName: "about" */ '../views/traindetails/generate.vue'),
        meta: {
          title: '火车票创建订单'
        },
      },
      {
        path: '/traindetails/Train12306AccountAgreement',
        name: 'Train12306AccountAgreement',
        component: () => import( /* webpackChunkName: "about" */ '../views/traindetails/Train12306AccountAgreement.vue'),
        meta: {
          title: '12306购票协议'
        },
      },
      {
        path: '/traindetails/identifica',
        name: 'identifica',
        component: () => import( /* webpackChunkName: "about" */ '../views/traindetails/identifica.vue'),
        meta: {
          title: '火车票支付'
        },
      },
      {
        path: '/train/endorseback',
        name: 'endorseback',
        component: () => import( /* webpackChunkName: "about" */ '../views/train/endorseback.vue'),
        meta: {
          title: '火车票退改签'
        },
      },
      {
        path: '/train/trainOrderDetails',
        name: 'trainOrderDetails',
        component: () => import( /* webpackChunkName: "about" */ '../views/train/trainOrderDetails.vue'),
        meta: {
          title: '火车票详情'
        },
      },
      {
        path: '/train/trainOrderDeta',
        name: 'trainOrderDeta',
        component: () => import( /* webpackChunkName: "about" */ '../views/train/trainOrderDeta.vue'),
        meta: {
          title: '火车票退改签详情'
        },
      },
      {
        path: '/viphall/viphallOrder',
        name: 'viphallOrder',
        component: () => import( /* webpackChunkName: "about" */ '../views/viphall/viphallOrder.vue'),
        meta: {
          title: '贵宾厅订单'
        },
      },
      {
        path: '/train/endorsedtopay',
        name: 'endorsedtopay',
        component: () => import( /* webpackChunkName: "about" */ '../views/train/endorsedtopay.vue'),
        meta: {
          title: '火车票改签支付'
        },
      },
      {
        path: '/viphall/viphallChannelOrder',
        name: 'viphallChannelOrder',
        component: () => import( /* webpackChunkName: "about" */ '../views/viphall/viphallChannelOrder.vue'),
        meta: {
          title: 'vip通道订单'
        },
      },
      {
        path: '/viphall/boardingCheck',
        name: 'boardingCheck',
        component: () => import( /* webpackChunkName: "about" */ '../views/viphall/boardingCheck.vue'),
        meta: {
          title: '值机订单'
        },
      },
      {
        path: '/case/caseMalfeasance',
        name: 'caseMalfeasance',
        component: () => import( /* webpackChunkName: "about" */ '../views/case/caseMalfeasance.vue'),
        meta: {
          title: '渎失职工单'
        },
      },
      {
        path: '/case/caseComplaintmodify',
        name: 'caseComplaintmodify',
        component: () => import( /* webpackChunkName: "about" */ '../views/case/caseComplaintmodify .vue'),
        meta: {
          title: '投诉工单详情'
        },
      },
      {
        path: '/case/caseClaim',
        name: 'caseClaim',
        component: () => import( /* webpackChunkName: "about" */ '../views/case/caseClaim.vue'),
        meta: {
          title: '理赔工单'
        },
      },
      {
        path: '/case/caseClaimModify',
        name: 'caseClaimModify',
        component: () => import( /* webpackChunkName: "about" */ '../views/case/caseClaimModify.vue'),
        meta: {
          title: '修改理赔工单'
        },
      },

      {
        path: '/case/internationalorders',
        name: 'internationalorders',
        component: () => import( /* webpackChunkName: "about" */ '../views/case/internationalorders.vue'),
        meta: {
          title: '国际机票订单'
        },
      },
      {
        path: '/iflight/orderimport',
        name: 'orderimport',
        component: () => import( /* webpackChunkName: "about" */ '../views/iflight/orderimport.vue'),
        meta: {
          title: '国际机票订单导入'
        },
      },
      {
        path: '/viphall/viphallData',
        name: 'viphallData',
        component: () => import( /* webpackChunkName: "about" */ '../views/viphall/viphallData.vue'),
        meta: {
          title: '贵宾厅基础数据'
        },
      },
      {
        path: '/viphall/viphallChannelData',
        name: 'viphallData',
        component: () => import( /* webpackChunkName: "about" */ '../views/viphall/viphallChannelData.vue'),
        meta: {
          title: 'vip通道基础数据'
        },
      },
      {
        path: '/flightProduct/airPort',
        name: 'airPort',
        component: () => import( /* webpackChunkName: "about" */ '../views/flightProduct/airPort.vue'),
        meta: {
          title: '机场'
        },
      },
      {
        path: '/flightProduct/airLine',
        name: 'airLine',
        component: () => import( /* webpackChunkName: "about" */ '../views/flightProduct/airLine.vue'),
        meta: {
          title: '航空公司'
        },
      },
      {
        path: '/flightProduct/planeType',
        name: 'planeType',
        component: () => import( /* webpackChunkName: "about" */ '../views/flightProduct/planeType.vue'),
        meta: {
          title: '机型'
        },
      },
      {
        path: '/flightProduct/terminal',
        name: 'terminal',
        component: () => import( /* webpackChunkName: "about" */ '../views/flightProduct/terminal.vue'),
        meta: {
          title: '机场航站楼'
        },
      },
      {
        path: '/flightProduct/commonDiscountProduct',
        name: 'commonDiscountProduct',
        component: () => import( /* webpackChunkName: "about" */ '../views/flightProduct/commonDiscountProduct.vue'),
        meta: {
          title: '直降产品政策'
        },
      },
      {
        path: '/Mall/productList',
        name: 'productList',
        component: () => import( /* webpackChunkName: "about" */ '../views/Mall/productList.vue'),
        meta: {
          title: '商品列表'
        },
      },
      // ----------------航班延误取消
      {
        path: '/Mall/productOrder',
        name: 'productOrder',
        component: () => import( /* webpackChunkName: "about" */ '../views/Mall/productOrder.vue'),
        meta: {
          title: '订单列表 '
        },
      },
      {
        path: '/Mall/orderRefund',
        name: 'orderRefund',
        component: () => import( /* webpackChunkName: "about" */ '../views/Mall/orderRefund.vue'),
        meta: {
          title: '商城退单 '
        },
      },
      {
        path: '/Mall/activity',
        name: 'activity',
        component: () => import( /* webpackChunkName: "about" */ '../views/Mall/activity.vue'),
        meta: {
          title: '活动管理'
        },
      },
      {
        name: 'carousel',
        path: '/Mall/carousel',
        name: 'carousel',
        component: () => import( /* webpackChunkName: "about" */ '../views/Mall/carousel.vue'),
        meta: {
          title: '轮播活动 '
        },
      },
      {
        name: 'listadd',
        path: '/Mall/listadd',
        name: 'listadd',
        component: () => import( /* webpackChunkName: "about" */ '../views/Mall/listadd.vue'),
        meta: {
          title: '添加列表 '
        },
      },
      {
        name: 'supplierProduct',
        path: '/Mall/supplierProduct',
        name: 'supplierProduct',
        component: () => import( /* webpackChunkName: "about" */ '../views/Mall/supplierProduct.vue'),
        meta: {
          title: '供应商商品'
        },
      },
      {
        name: 'supplierOrder',
        path: '/Mall/supplierOrder',
        name: 'supplierOrder',
        component: () => import( /* webpackChunkName: "about" */ '../views/Mall/supplierOrder.vue'),
        meta: {
          title: '供应商订单'
        },
      },

      {
        path: '/iflight/iflightOrder',
        name: 'iflightOrder',
        component: () => import( /* webpackChunkName: "about" */ '../views/iflight/iflightOrder.vue'),
        meta: {
          title: '国际机票'
        },
      },
      {
        path: '/iflight/orderimport',
        name: 'orderimport',
        component: () => import( /* webpackChunkName: "about" */ '../views/iflight/orderimport.vue'),
        meta: {
          title: '国际机票订单导入'
        },
      },
      {
        path: '/iflight/gopay',
        name: 'gopay',
        component: () => import( /* webpackChunkName: "about" */ '../views/iflight/gopay.vue'),
        meta: {
          title: '国际机票支付'
        },
      },
      {
        path: '/iflight/detail',
        name: 'detail',
        component: () => import( /* webpackChunkName: "about" */ '../views/iflight/detail.vue'),
        meta: {
          title: '国际机票详情'
        },
      },
      {
        path: '/iflight/internationalticket',
        name: 'internationalticket',
        component: () => import( /* webpackChunkName: "about" */ '../views/iflight/internationalticket.vue'),
        meta: {
          title: '国际机票退票'
        },
      },
      {
        path: '/flightProduct/ticketRemind',
        name: 'ticketRemind',
        component: () => import( /* webpackChunkName: "about" */ '../views/flightProduct/ticketRemind.vue'),
        meta: {
          title: '提醒功能'
        },
      },

      {
        path: '/flightProduct/salePolicy',
        name: 'salePolicy',
        component: () => import( /* webpackChunkName: "about" */ '../views/flightProduct/salePolicy'),
        meta: {
          title: '机票销售政策'
        },
      },
      {
        path: '/flightProduct/airAccount',
        name: 'airAccount',
        component: () => import( /* webpackChunkName: "about" */ '../views/flightProduct/airAccount'),
        meta: {
          title: '机票B2B账号'
        },
      },
      {
        path: '/flightProduct/channelRule',
        name: 'channelRule',
        component: () => import( /* webpackChunkName: "about" */ '../views/flightProduct/channelRule'),
        meta: {
          title: '渠道出票规定'
        },
      },

      {
        path: '/flightProduct/adjustPassenger',
        name: 'adjustPassenger',
        component: () => import( /* webpackChunkName: "about" */ '../views/flightProduct/adjustPassenger'),
        meta: {
          title: '渠道名单调整'
        },
      },
      {
        path: '/flightProduct/bigcustomers',
        name: 'bigcustomers',
        component: () => import( /* webpackChunkName: "about" */ '../views/flightProduct/bigcustomers'),
        meta: {
          title: '修改渠道订单'
        },
      },
      {
        path: '/flight/flightItinerary',
        name: 'flightItinerary',
        component: () => import( /* webpackChunkName: "about" */ '../views/flight/flightItinerary.vue'),
        meta: {
          title: '机票行程单'
        },
      },
      {
        path: '/flight/flightInvoice',
        name: 'flightInvoice',
        component: () => import( /* webpackChunkName: "about" */ '../views/flight/flightInvoice.vue'),
        meta: {
          title: '机票发票'
        },
      },
      {
        path: '/flightProduct/channelList',
        name: 'channelList',
        component: () => import( /* webpackChunkName: "about" */ '../views/flightProduct/channelList'),
        meta: {
          title: '新增三方大客户维护'
        },
      },
      {
        path: '/flight/orderInfoChange',
        name: 'orderInfoChange',
        component: () => import( /* webpackChunkName: "about" */ '../views/flight/orderInfoChange.vue'),
        meta: {
          title: '航班信息变动'
        },
      },
      {
        path: '/flight/members',
        name: 'members',
        component: () => import( /* webpackChunkName: "about" */ '../views/flight/members.vue'),
        meta: {
          title: '券信息管理'
        },
      },
      {
        path: '/flight/maintenance',
        name: 'maintenance',
        component: () => import( /* webpackChunkName: "about" */ '../views/flight/maintenance.vue'),
        meta: {
          title: '维护卡权益'
        },
      },

      {
        path: '/finance/customerRefundRequest',
        name: 'customerRefundRequest',
        component: () => import('../views/finance/customerRefundRequest.vue'),
        meta: {
          title: '会员退款申请'
        },
      },
      {
        path: '/finance/customerRefundAudit',
        name: 'customerRefundAudit',
        component: () => import('../views/finance/customerRefundAudit'),
        meta: {
          title: '会员退款审核'
        },
      },
      {
        path: '/finance/customerRefundPay',
        name: 'customerRefundPay',
        component: () => import('../views/finance/customerRefundPay'),
        meta: {
          title: '会员退款支付'
        },
      },
      {
        path: '/customer/assistProduct',
        name: 'assistProduct',
        component: () => import( /* webpackChunkName: "about" */ '../views/customer/assistProduct.vue'),
        meta: {
          title: '通用辅营产品'
        },
      },
      {
        path: '/finance/autoBillUpload',
        name: 'autoBillUpload',
        component: () => import('../views/finance/autoBillUpload.vue'),
        meta: {
          title: '上传原始账单'
        },
      },
      {
        path: '/finance/customerRefundPay',
        name: 'customerRefundPay',
        component: () => import('../views/finance/customerRefundPay'),
        meta: {
          title: '会员退款支付'
        },
      },
      {
        path: '/finance/consignPymtRecord',
        name: 'consignPymtRecord',
        component: () => import('../views/finance/consignPymtRecord'),
        meta: {
          title: '机票代收管理'
        },
      },
      {
        path: '/finance/flightPaymodify',
        name: 'flightPaymodify',
        component: () => import('../views/finance/flightPaymodify'),
        meta: {
          title: '机票代收支付修改'
        },
      },
      {
        path: '/finance/flightorderdispose',
        name: 'flightorderdispose',
        component: () => import('../views/finance/flightorderdispose'),
        meta: {
          title: '机票代收处理订单'
        },
      },
      {
        path: '/finance/autoBillResult',
        name: 'autoBillResult',
        component: () => import('../views/finance/autoBillResult.vue'),
        meta: {
          title: '自动对账调整'
        },
      },
      {
        path: '/finance/autoBillAdjust',
        name: 'autoBillAdjust',
        component: () => import('../views/finance/autoBillAdjust.vue'),
        meta: {
          title: '自动对账调整'
        },
      },
      {
        path: '/finance/consignPymtRecord',
        name: 'consignPymtRecord',
        component: () => import('../views/finance/consignPymtRecord.vue'),
        meta: {
          title: '自动对账调整'
        },
      },
      {
        path: '/finance/batchpayment',
        name: 'batchpayment',
        component: () => import('../views/finance/batchpayment.vue'),
        meta: {
          title: '批量付款'
        },
      },
      {
        path: '/insurance/claimInsurance',
        name: 'claimInsurance',
        component: () => import('../views/insurance/claimInsurance.vue'),
        meta: {
          title: '保险理赔'
        },
      },
      {
        path: '/insurance/insuraceRecord',
        name: 'insuraceRecord',
        component: () => import('../views/insurance/insuraceRecord.vue'),
        meta: {
          title: '保险记录'
        },
      },
      {
        path: '/insurance/travelCare',
        name: 'travelCare',
        component: () => import('../views/insurance/travelCare.vue'),
        meta: {
          title: '航旅关怀记录'
        },
      },
      {
        path: '/jibenxinxi/invoicegetInfo',
        name: 'invoicegetInfo',
        component: () => import('../views/jibenxinxi/invoicegetInfo.vue'),
        meta: {
          title: '发票订单详情'
        },
      },
      {
        path: '/customer/customercardrefundinformation',
        name: 'customercardrefundinformation',
        component: () => import('../views/customer/customercardrefundinformation.vue'),
        meta: {
          title: '查询退卡信息'
        },
      },
      {
        path: '/customer/customercardinformationDetails',
        name: 'customercardinformationDetails',
        component: () => import('../views/customer/customercardinformationDetails.vue'),
        meta: {
          title: '退卡信息详情'
        },
      },
      {
        path: "/finance/pointAudit",
        name: 'pointAudit',
        component: () => import('../views/finance/pointAudit.vue'),
        meta: {
          title: '积分审核'
        },
      },
      {
        path: '/customer/customertraindetails',
        name: 'customertraindetails',
        component: () => import('../views/customer/customertraindetails.vue'),
        meta: {
          title: '火车订单详情'
        },
      },
      {
        path: '/customer/couponsdetails',
        name: 'couponsdetails',
        component: () => import('../views/customer/couponsdetails.vue'),
        meta: {
          title: '优惠卷详情'
        },
      },
      {
        path: '/customer/customertrainOrder',
        name: 'customertrainOrder',
        component: () => import('../views/customer/customertrainOrder.vue'),
        meta: {
          title: '会员火车票订单'
        },
      },
      {
        path: '/customer/customerHotelorder',
        name: 'customerHotelorder',
        component: () => import('../views/customer/customerHotelorder.vue'),
        meta: {
          title: '会员酒店订单'
        },
      },
      {
        path: '/customer/customerFightorder',
        name: 'customerFightorder',
        component: () => import('../views/customer/customerFightorder.vue'),
        meta: {
          title: '会员机票订单'
        },
      },
      {
        path: '/customer/customerHallorder',
        name: 'customerHallorder',
        component: () => import('../views/customer/customerHallorder.vue'),
        meta: {
          title: '会员贵宾厅订单'
        },
      },
      {
        path: '/customer/customerViporder',
        name: 'customerViporder',
        component: () => import('../views/customer/customerViporder.vue'),
        meta: {
          title: '会员vip通道订单'
        },
      },
      {
        path: '/customer/customerCheckinorder',
        name: 'customerCheckinorder',
        component: () => import('../views/customer/customerCheckinorder.vue'),
        meta: {
          title: '会员值机订单'
        },
      },
      {
        path: '/travel/travelOrder',
        name: 'travelOrder',
        component: () => import('../views/travel/travelOrder.vue'),
        meta: {
          title: '旅游订单'
        },
      },
      {
        path: '/finance/depositAudit',
        name: 'depositAudit',
        component: () => import('../views/finance/depositAudit.vue'),
        meta: {
          title: '预留款审核'
        },
      },
      {
        path: '/system/smsAirlineTicket',
        name: 'smsAirlineTicket',
        component: () => import('../views/system/smsAirlineTicket.vue'),
        meta: {
          title: '短信猫监控'
        },
      },
      {
        path: '/system/repeatTitle',
        name: 'repeatTitle',
        component: () => import('../views/system/repeatTitle.vue'),
        meta: {
          title: '跑马灯维护'
        },
      },
      {
        path: '/system/messagetemplate',
        name: 'messagetemplate',
        component: () => import('../views/system/messagetemplate.vue'),
        meta: {
          title: '短信模板维护'
        },
      },
      {
        path: '/finance/financeinvoicegetInfo',
        name: 'financeinvoicegetInfo',
        component: () => import('../views/finance/financeinvoicegetInfo.vue'),
        meta: {
          title: '发票详情'
        },
      },
      {
        path: '/system/smskeyword',
        name: 'smskeyword',
        component: () => import('../views/system/smskeyword.vue'),
        meta: {
          title: '短信猫关键字维护'
        },
      },
      {
        path: '/customer/customerintegralSubsidiary',
        name: 'customerintegralSubsidiary',
        component: () => import('../views/customer/customerintegralSubsidiary.vue'),
        meta: {
          title: '会员积分明细'
        },
      },
      {
        path: '/hotel/Outsidemining',
        name: 'Outsidemining',
        component: () => import('../views/hotel/Outsidemining.vue'),
        meta: {
          title: '酒店创建外采订单'
        },
      },
      {
        path: '/reservation/hotelData',
        name: 'reservation',
        component: () => import('../views/reservation/hotelData.vue'),
        meta: {
          title: '酒店创建外采订单'
        },
      },
      {
        path: '/reservation/hotelAdd',
        name: 'hotelAdd',
        component: () => import('../views/reservation/hotelAdd.vue'),
        meta: {
          title: '添加酒店'
        },
      },
      {
        path: '/flight/Backforth',
        name: 'Backforth',
        component: () => import('../views/flight/Backforth.vue'),
        meta: {
          title: '往返详情'
        },
      },
      {
        path: '/reservation/hotelEdit',
        name: 'hotelEdit',
        component: () => import('../views/reservation/hotelEdit.vue'),
        meta: {
          title: '修改酒店'
        },
      },
      {
        path: '/customer/cardVerification',
        name: 'cardVerification',
        component: () => import('../views/customer/cardVerification.vue'),
        meta: {
          title: '退卡审核详情'
        },
      },
      {
        path: '/flight/overdueTicket',
        name: 'overdueTicket',
        component: () => import('../views/flight/overdueTicket.vue'),
        meta: {
          title: '逾期客票'
        },
      },
      {
        path: '/DDDriving/couponUsed',
        name: 'couponUsed',
        component: () => import('../views/DDDriving/couponUsed.vue'),
        meta: {
          title: '使用记录导入'
        },
      },
      {
        path: '/DDDriving/audit',
        name: 'audit',
        component: () => import('../views/DDDriving/audit.vue'),
        meta: {
          title: '企业微信审核'
        },
      },
      {
        path: '/DDDriving/couponQuery',
        name: 'couponQuery',
        component: () => import('../views/DDDriving/couponQuery.vue'),
        meta: {
          title: '加券数据查询'
        },
      },
      {
        path: '/DDDriving/specialCarOrder',
        name: 'specialCarOrder',
        component: () => import('../views/DDDriving/specialCarOrder.vue'),
        meta: {
          title: '专车订单'
        },
      },
      {
        path: '/customer/orderdetails',
        name: 'orderdetails',
        component: () => import('../views/customer/orderdetails.vue'),
        meta: {
          title: '会员卡订单详情'
        },
      },
      {
        path: '/customer/frequencyuser',
        name: 'frequencyuser',
        component: () => import('../views/customer/frequencyuser.vue'),
        meta: {
          title: '高频用户列表'
        },
      },
    ]
  }
]
const router = new VueRouter({
  routes
})

const whiteRouterList = ['/Login']

router.beforeEach((to, from, next) => {
  NProgress.start()
  document.title = to.meta.title
  // 查找localStorage存储    cookie.get
  if (cookie.get('Xd_Token')) {
    if (to.path === '/Login') {
      next({
        path: from.path
      })
    } else {
      next()
    }
    NProgress.done()
  } else {
    if (whiteRouterList.indexOf(to.path) !== -1) {
      next()
    } else {
      next({
        name: 'Login',
        query: {
          redirect: to.fullPath
        }
      })
    }
    NProgress.done()
  }
  next()
})
// 页面加载完成
router.afterEach((to, from) => {
  NProgress.done()
})
export default router